<?=$system_message;?>
<?=$change_username_errors;?>
<div class="section-container auto" data-section data-options="deep_linking: true">
  <!--
  <section class="active">
    <p class="title" data-section-title><a href="#change-username">Change Username</a></p>
    <div class="content" data-slug="change-username" data-section-content>
    	<span class="clearfix"></span>
		<?
			echo form_open('guardian/change_password/'.$hash);
		?>
			<div class="row">
				<div class="large-6 columns">
					<label for="new_username">New Username / Email</label>
					<input type="email" id="new_username" name="new_username" placeholder="Your new Username / Email" title="Parent Email"/>
		        </div>

				<div class="large-6 columns">
					<label for="c_new_username">Confirm Username / Email</label>
					<input type="email" id="c_new_username" name="c_new_username" placeholder="Confirm Your new Username / Email" title="Parent Email">
		        </div>
				
				<div class="large-6 columns">
					<label for="old_password">Password</label>
					<input type="password" name="user_password"  placeholder="Your Current Password">
		        </div>
				<hr class="clearfix">
				<div class="large-6 columns">
		            <input type="hidden" name="jhhd_loc" value="<?=$hash;?>">
		            <input type="submit" name="change_parent_login_username" value="Change Username" class="btn btn-primary">
		        </div>
			</div>

		<?php
		echo form_close();
		?>
    </div>
  </section>
  -->
  <section class="active">
    <p class="title" data-section-title><a href="#change-password">Change Password</a></p>
    <div class="content" data-slug="change-password" data-section-content>
    	<span class="clearfix"></span>
		<?
			echo form_open('guardian/change_password/'.$hash);
		?>
			<p class="lead-title">Change Password</p>
			<div class="row">

				<div class="large-6 columns">
					<label for="old_password">Old Password</label>
					<?php echo form_password('old_password',set_value('old_password')); ?>
		        </div>
		        <div class="clearfix"></div>
				<div class="large-6 columns">
					<label for="new_password">New Password</label>
		            <?php echo form_password('new_password',set_value('new_password'), 'pattern=".{6,30}" title="6 to 30 characters only"');?>
		        </div>

				
				<div class="large-6 columns">
					<label for="c_new_password">Confirm New Password</label>
		            <?php echo form_password('c_new_password',set_value('c_new_password'), 'pattern=".{6,30}" title="6 to 30 characters only"');?>
		        </div>
				<hr class="clearfix">
				<div class="large-6 columns">
		            <?php echo form_submit('change_password', 'Save New Password','class="btn btn-success"');?>
		            <input type="hidden" name="jhhd_loc" value="<?=$hash;?>">
		        </div>
			</div>

		<?php
		echo form_close();
		?>
    </div>
  </section>
</div>